<template>
    <component :is="node.vueComponentName" :config="node.konvaGraphConfig">
        <template v-if="node.graphsConfigItems?.length">
            <KonvaGraphNode v-for="child in node.graphsConfigItems" :key="child.vueComponentName" :node="child" />
        </template>
    </component>
</template>

<script setup lang="ts">
defineProps({
    node: {
        type: Object,
        required: true,
    },
})
</script>

